using DAL;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace MainOP
{
    public class aomaFunc
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name=med></param>
        /// <returns></returns>
        public static bool Insert(aomaModel aomamodel)
        {
            System.Collections.ArrayList paramlist = new System.Collections.ArrayList();
            bool re = false;
            StringBuilder strSQL = new StringBuilder();
            StringBuilder strValue = new StringBuilder();
            strSQL.Append("insert into tiaoma(");
            strValue.Append("values("); strSQL.Append("[内部码]");
            strValue.Append("'" + aomamodel.内部码.ToString() + "'");
            strSQL.Append(",[OP10扫码1名称]");
            strValue.Append(",'" + aomamodel.OP10扫码1名称.ToString() + "'");
            strSQL.Append(",[OP10扫码1]");
            strValue.Append(",'" + aomamodel.OP10扫码1.ToString() + "'");
            strSQL.Append(",[OP10扫码2名称]");
            strValue.Append(",'" + aomamodel.OP10扫码2名称.ToString() + "'");
            strSQL.Append(",[OP10扫码2]");
            strValue.Append(",'" + aomamodel.OP10扫码2.ToString() + "'");
            strSQL.Append(",[OP10扫码3名称]");
            strValue.Append(",'" + aomamodel.OP10扫码3名称.ToString() + "'");
            strSQL.Append(",[OP10扫码3]");
            strValue.Append(",'" + aomamodel.OP10扫码3.ToString() + "'");
            strSQL.Append(",[OP10扫码4名称]");
            strValue.Append(",'" + aomamodel.OP10扫码4名称.ToString() + "'");
            strSQL.Append(",[OP10扫码4]");
            strValue.Append(",'" + aomamodel.OP10扫码4.ToString() + "'");
            strSQL.Append(",[OP20扫码1名称]");
            strValue.Append(",'" + aomamodel.OP20扫码1名称.ToString() + "'");
            strSQL.Append(",[OP20扫码1]");
            strValue.Append(",'" + aomamodel.OP20扫码1.ToString() + "'");
            strSQL.Append(",[OP20扫码2名称]");
            strValue.Append(",'" + aomamodel.OP20扫码2名称.ToString() + "'");
            strSQL.Append(",[OP20扫码2]");
            strValue.Append(",'" + aomamodel.OP20扫码2.ToString() + "'");
            strSQL.Append(",[OP20扫码3名称]");
            strValue.Append(",'" + aomamodel.OP20扫码3名称.ToString() + "'");
            strSQL.Append(",[OP20扫码3]");
            strValue.Append(",'" + aomamodel.OP20扫码3.ToString() + "'");
            strSQL.Append(",[OP20扫码4名称]");
            strValue.Append(",'" + aomamodel.OP20扫码4名称.ToString() + "'");
            strSQL.Append(",[OP20扫码4]");
            strValue.Append(",'" + aomamodel.OP20扫码4.ToString() + "'");
            strSQL.Append(",[OP30扫码1名称]");
            strValue.Append(",'" + aomamodel.OP30扫码1名称.ToString() + "'");
            strSQL.Append(",[OP30扫码1]");
            strValue.Append(",'" + aomamodel.OP30扫码1.ToString() + "'");
            strSQL.Append(",[OP30扫码2名称]");
            strValue.Append(",'" + aomamodel.OP30扫码2名称.ToString() + "'");
            strSQL.Append(",[OP30扫码2]");
            strValue.Append(",'" + aomamodel.OP30扫码2.ToString() + "'");
            strSQL.Append(",[OP30扫码3名称]");
            strValue.Append(",'" + aomamodel.OP30扫码3名称.ToString() + "'");
            strSQL.Append(",[OP30扫码3]");
            strValue.Append(",'" + aomamodel.OP30扫码3.ToString() + "'");
            strSQL.Append(",[OP30扫码4名称]");
            strValue.Append(",'" + aomamodel.OP30扫码4名称.ToString() + "'");
            strSQL.Append(",[OP30扫码4]");
            strValue.Append(",'" + aomamodel.OP30扫码4.ToString() + "'");
            strSQL.Append(",[OP40扫码1名称]");
            strValue.Append(",'" + aomamodel.OP40扫码1名称.ToString() + "'");
            strSQL.Append(",[OP40扫码1]");
            strValue.Append(",'" + aomamodel.OP40扫码1.ToString() + "'");
            strSQL.Append(",[OP40扫码2名称]");
            strValue.Append(",'" + aomamodel.OP40扫码2名称.ToString() + "'");
            strSQL.Append(",[OP40扫码2]");
            strValue.Append(",'" + aomamodel.OP40扫码2.ToString() + "'");
            strSQL.Append(",[OP40扫码3名称]");
            strValue.Append(",'" + aomamodel.OP40扫码3名称.ToString() + "'");
            strSQL.Append(",[OP40扫码3]");
            strValue.Append(",'" + aomamodel.OP40扫码3.ToString() + "'");
            strSQL.Append(",[OP40扫码4名称]");
            strValue.Append(",'" + aomamodel.OP40扫码4名称.ToString() + "'");
            strSQL.Append(",[OP40扫码4]");
            strValue.Append(",'" + aomamodel.OP40扫码4.ToString() + "'");
            strSQL.Append(",[OP50扫码1名称]");
            strValue.Append(",'" + aomamodel.OP50扫码1名称.ToString() + "'");
            strSQL.Append(",[OP50扫码1]");
            strValue.Append(",'" + aomamodel.OP50扫码1.ToString() + "'");
            strSQL.Append(",[OP50扫码2名称]");
            strValue.Append(",'" + aomamodel.OP50扫码2名称.ToString() + "'");
            strSQL.Append(",[OP50扫码2]");
            strValue.Append(",'" + aomamodel.OP50扫码2.ToString() + "'");
            strSQL.Append(",[OP50扫码3名称]");
            strValue.Append(",'" + aomamodel.OP50扫码3名称.ToString() + "'");
            strSQL.Append(",[OP50扫码3]");
            strValue.Append(",'" + aomamodel.OP50扫码3.ToString() + "'");
            strSQL.Append(",[OP50扫码4名称]");
            strValue.Append(",'" + aomamodel.OP50扫码4名称.ToString() + "'");
            strSQL.Append(",[OP50扫码4]");
            strValue.Append(",'" + aomamodel.OP50扫码4.ToString() + "'");
            strSQL.Append(",[OP60扫码1名称]");
            strValue.Append(",'" + aomamodel.OP60扫码1名称.ToString() + "'");
            strSQL.Append(",[OP60扫码1]");
            strValue.Append(",'" + aomamodel.OP60扫码1.ToString() + "'");
            strSQL.Append(",[OP60扫码2名称]");
            strValue.Append(",'" + aomamodel.OP60扫码2名称.ToString() + "'");
            strSQL.Append(",[OP60扫码2]");
            strValue.Append(",'" + aomamodel.OP60扫码2.ToString() + "'");
            strSQL.Append(",[OP60扫码3名称]");
            strValue.Append(",'" + aomamodel.OP60扫码3名称.ToString() + "'");
            strSQL.Append(",[OP60扫码3]");
            strValue.Append(",'" + aomamodel.OP60扫码3.ToString() + "'");
            strSQL.Append(",[OP60扫码4名称]");
            strValue.Append(",'" + aomamodel.OP60扫码4名称.ToString() + "'");
            strSQL.Append(",[OP60扫码4])");
            strValue.Append(",'" + aomamodel.OP60扫码4.ToString() + "')");
            strSQL.Append(",[返修内容])");
            strValue.Append(",'" + aomamodel.返修内容.ToString() + "')");

            string str = strSQL.ToString() + "\r\n" + strValue.ToString();
            try
            {
                IDataParameter[] param = (IDataParameter[])paramlist.ToArray(typeof(IDataParameter));
                re = SqlHelpertiaoma.ExceNonQuery(str, CommandType.Text, param);
            }
            catch
            {
                re = false;
            }
            return re;
        }

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name=med></param>
        /// <returns></returns>
        public static bool update(aomaModel aomamodel)
        {
            System.Collections.ArrayList paramlist = new System.Collections.ArrayList();
            bool re = false;
            StringBuilder strSQL = new StringBuilder();
            strSQL.Append("update tiaoma set ");
            strSQL.Append("内部码='" + aomamodel.内部码.ToString() + "'");
            strSQL.Append(",OP10扫码1名称='" + aomamodel.OP10扫码1名称.ToString() + "'");
            strSQL.Append(",OP10扫码1='" + aomamodel.OP10扫码1.ToString() + "'");
            strSQL.Append(",OP10扫码2名称='" + aomamodel.OP10扫码2名称.ToString() + "'");
            strSQL.Append(",OP10扫码2='" + aomamodel.OP10扫码2.ToString() + "'");
            strSQL.Append(",OP10扫码3名称='" + aomamodel.OP10扫码3名称.ToString() + "'");
            strSQL.Append(",OP10扫码3='" + aomamodel.OP10扫码3.ToString() + "'");
            strSQL.Append(",OP10扫码4名称='" + aomamodel.OP10扫码4名称.ToString() + "'");
            strSQL.Append(",OP10扫码4='" + aomamodel.OP10扫码4.ToString() + "'");
            strSQL.Append(",OP20扫码1名称='" + aomamodel.OP20扫码1名称.ToString() + "'");
            strSQL.Append(",OP20扫码1='" + aomamodel.OP20扫码1.ToString() + "'");
            strSQL.Append(",OP20扫码2名称='" + aomamodel.OP20扫码2名称.ToString() + "'");
            strSQL.Append(",OP20扫码2='" + aomamodel.OP20扫码2.ToString() + "'");
            strSQL.Append(",OP20扫码3名称='" + aomamodel.OP20扫码3名称.ToString() + "'");
            strSQL.Append(",OP20扫码3='" + aomamodel.OP20扫码3.ToString() + "'");
            strSQL.Append(",OP20扫码4名称='" + aomamodel.OP20扫码4名称.ToString() + "'");
            strSQL.Append(",OP20扫码4='" + aomamodel.OP20扫码4.ToString() + "'");
            strSQL.Append(",OP30扫码1名称='" + aomamodel.OP30扫码1名称.ToString() + "'");
            strSQL.Append(",OP30扫码1='" + aomamodel.OP30扫码1.ToString() + "'");
            strSQL.Append(",OP30扫码2名称='" + aomamodel.OP30扫码2名称.ToString() + "'");
            strSQL.Append(",OP30扫码2='" + aomamodel.OP30扫码2.ToString() + "'");
            strSQL.Append(",OP30扫码3名称='" + aomamodel.OP30扫码3名称.ToString() + "'");
            strSQL.Append(",OP30扫码3='" + aomamodel.OP30扫码3.ToString() + "'");
            strSQL.Append(",OP30扫码4名称='" + aomamodel.OP30扫码4名称.ToString() + "'");
            strSQL.Append(",OP30扫码4='" + aomamodel.OP30扫码4.ToString() + "'");
            strSQL.Append(",OP40扫码1名称='" + aomamodel.OP40扫码1名称.ToString() + "'");
            strSQL.Append(",OP40扫码1='" + aomamodel.OP40扫码1.ToString() + "'");
            strSQL.Append(",OP40扫码2名称='" + aomamodel.OP40扫码2名称.ToString() + "'");
            strSQL.Append(",OP40扫码2='" + aomamodel.OP40扫码2.ToString() + "'");
            strSQL.Append(",OP40扫码3名称='" + aomamodel.OP40扫码3名称.ToString() + "'");
            strSQL.Append(",OP40扫码3='" + aomamodel.OP40扫码3.ToString() + "'");
            strSQL.Append(",OP40扫码4名称='" + aomamodel.OP40扫码4名称.ToString() + "'");
            strSQL.Append(",OP40扫码4='" + aomamodel.OP40扫码4.ToString() + "'");
            strSQL.Append(",OP50扫码1名称='" + aomamodel.OP50扫码1名称.ToString() + "'");
            strSQL.Append(",OP50扫码1='" + aomamodel.OP50扫码1.ToString() + "'");
            strSQL.Append(",OP50扫码2名称='" + aomamodel.OP50扫码2名称.ToString() + "'");
            strSQL.Append(",OP50扫码2='" + aomamodel.OP50扫码2.ToString() + "'");
            strSQL.Append(",OP50扫码3名称='" + aomamodel.OP50扫码3名称.ToString() + "'");
            strSQL.Append(",OP50扫码3='" + aomamodel.OP50扫码3.ToString() + "'");
            strSQL.Append(",OP50扫码4名称='" + aomamodel.OP50扫码4名称.ToString() + "'");
            strSQL.Append(",OP50扫码4='" + aomamodel.OP50扫码4.ToString() + "'");
            strSQL.Append(",OP60扫码1名称='" + aomamodel.OP60扫码1名称.ToString() + "'");
            strSQL.Append(",OP60扫码1='" + aomamodel.OP60扫码1.ToString() + "'");
            strSQL.Append(",OP60扫码2名称='" + aomamodel.OP60扫码2名称.ToString() + "'");
            strSQL.Append(",OP60扫码2='" + aomamodel.OP60扫码2.ToString() + "'");
            strSQL.Append(",OP60扫码3名称='" + aomamodel.OP60扫码3名称.ToString() + "'");
            strSQL.Append(",OP60扫码3='" + aomamodel.OP60扫码3.ToString() + "'");
            strSQL.Append(",OP60扫码4名称='" + aomamodel.OP60扫码4名称.ToString() + "'");
            strSQL.Append(",OP60扫码4='" + aomamodel.OP60扫码4.ToString() + "'");
            strSQL.Append(",返修内容='" + aomamodel.返修内容.ToString() + "'");

            strSQL.Append(" WHERE 内部码='" + aomamodel.内部码.ToString() + "'");

            try
            {
                IDataParameter[] param = (IDataParameter[])paramlist.ToArray(typeof(IDataParameter));
                re = SqlHelpertiaoma.ExceNonQuery(strSQL.ToString(), CommandType.Text, param);
            }
            catch
            {

            }
            return re;
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name=id></param>
        /// <returns></returns>
        public static bool delete(string 内部码)
        {
            bool re = false;
            try
            {
                re = SqlHelpertiaoma.ExceNonQuery("delete from tiaoma where 内部码='" + 内部码 + "'");
            }
            catch
            {

            }
            return re;
        }
        /// <summary>
        /// 删除所有的数据
        /// </summary>
        /// <returns></returns>
        public static bool delete()
        {
            bool re = false;
            try
            {
                re = SqlHelpertiaoma.ExceNonQuery("delete from  tiaoma ");
            }
            catch
            {

            }
            return re;
        } /// <summary>
          /// 根据主键获取信息
          /// </summary>
          /// <param name=内部码></param>
          /// <returns></returns>
        public static aomaModel GetDataModel(string 内部码)
        {
            aomaModel aomamodel = new aomaModel();
            DataTable dt = GetDataTable("  where 内部码='" + 内部码 + "'");//SqlHelper.SqlHelper.QueryDataTable("select * from tiaoma where ID=" + ID.ToString());
            if (dt.Rows.Count > 0)
            {
                aomamodel = GetData(dt.Rows[0]);
            }
            return aomamodel;
        }

        /// <summary>
        /// DataRow生成aomaModel数据
        /// </summary>
        /// <param name=dr></param>
        /// <returns></returns>
        public static aomaModel GetData(DataRow dr)
        {
            aomaModel aomamodel = new aomaModel();


            aomamodel.内部码 = dr["内部码"].ToString();
            aomamodel.ID = dr["ID"].ToString();
            aomamodel.OP10_1扫码1名称 = dr["OP10-1扫码1名称"].ToString();
            aomamodel.OP10_1扫码1 = dr["OP10-1扫码1"].ToString();
            aomamodel.OP10_1扫码2名称 = dr["OP10-1扫码2名称"].ToString();
            aomamodel.OP10_1扫码2 = dr["OP10-1扫码2"].ToString();
            aomamodel.OP10_2扫码1名称 = dr["OP10-2扫码1名称"].ToString();
            aomamodel.OP10_2扫码1 = dr["OP10-2扫码1"].ToString();
            aomamodel.OP10_2扫码2名称 = dr["OP10-2扫码2名称"].ToString();
            aomamodel.OP10_2扫码2 = dr["OP10-2扫码2"].ToString();

            aomamodel.OP10扫码1名称 = dr["OP10扫码1名称"].ToString();
            aomamodel.OP10扫码1 = dr["OP10扫码1"].ToString();
            aomamodel.OP10扫码2名称 = dr["OP10扫码2名称"].ToString();
            aomamodel.OP10扫码2 = dr["OP10扫码2"].ToString();
            aomamodel.OP10扫码3名称 = dr["OP10扫码3名称"].ToString();
            aomamodel.OP10扫码3 = dr["OP10扫码3"].ToString();
            aomamodel.OP10扫码4名称 = dr["OP10扫码4名称"].ToString();
            aomamodel.OP10扫码4 = dr["OP10扫码4"].ToString();
            aomamodel.OP20扫码1名称 = dr["OP20扫码1名称"].ToString();
            aomamodel.OP20扫码1 = dr["OP20扫码1"].ToString();
            aomamodel.OP20扫码2名称 = dr["OP20扫码2名称"].ToString();
            aomamodel.OP20扫码2 = dr["OP20扫码2"].ToString();
            aomamodel.OP20扫码3名称 = dr["OP20扫码3名称"].ToString();
            aomamodel.OP20扫码3 = dr["OP20扫码3"].ToString();
            aomamodel.OP20扫码4名称 = dr["OP20扫码4名称"].ToString();
            aomamodel.OP20扫码4 = dr["OP20扫码4"].ToString();
            aomamodel.OP30扫码1名称 = dr["OP30扫码1名称"].ToString();
            aomamodel.OP30扫码1 = dr["OP30扫码1"].ToString();
            aomamodel.OP30扫码2名称 = dr["OP30扫码2名称"].ToString();
            aomamodel.OP30扫码2 = dr["OP30扫码2"].ToString();
            aomamodel.OP30扫码3名称 = dr["OP30扫码3名称"].ToString();
            aomamodel.OP30扫码3 = dr["OP30扫码3"].ToString();
            aomamodel.OP30扫码4名称 = dr["OP30扫码4名称"].ToString();
            aomamodel.OP30扫码4 = dr["OP30扫码4"].ToString();
            aomamodel.OP40扫码1名称 = dr["OP40扫码1名称"].ToString();
            aomamodel.OP40扫码1 = dr["OP40扫码1"].ToString();
            aomamodel.OP40扫码2名称 = dr["OP40扫码2名称"].ToString();
            aomamodel.OP40扫码2 = dr["OP40扫码2"].ToString();
            aomamodel.OP40扫码3名称 = dr["OP40扫码3名称"].ToString();
            aomamodel.OP40扫码3 = dr["OP40扫码3"].ToString();
            aomamodel.OP40扫码4名称 = dr["OP40扫码4名称"].ToString();
            aomamodel.OP40扫码4 = dr["OP40扫码4"].ToString();
            aomamodel.OP50扫码1名称 = dr["OP50扫码1名称"].ToString();
            aomamodel.OP50扫码1 = dr["OP50扫码1"].ToString();
            aomamodel.OP50扫码2名称 = dr["OP50扫码2名称"].ToString();
            aomamodel.OP50扫码2 = dr["OP50扫码2"].ToString();
            aomamodel.OP50扫码3名称 = dr["OP50扫码3名称"].ToString();
            aomamodel.OP50扫码3 = dr["OP50扫码3"].ToString();
            aomamodel.OP50扫码4名称 = dr["OP50扫码4名称"].ToString();
            aomamodel.OP50扫码4 = dr["OP50扫码4"].ToString();
            aomamodel.OP60扫码1名称 = dr["OP60扫码1名称"].ToString();
            aomamodel.OP60扫码1 = dr["OP60扫码1"].ToString();
            aomamodel.OP60扫码2名称 = dr["OP60扫码2名称"].ToString();
            aomamodel.OP60扫码2 = dr["OP60扫码2"].ToString();
            aomamodel.OP60扫码3名称 = dr["OP60扫码3名称"].ToString();
            aomamodel.OP60扫码3 = dr["OP60扫码3"].ToString();
            aomamodel.OP60扫码4名称 = dr["OP60扫码4名称"].ToString();
            aomamodel.OP60扫码4 = dr["OP60扫码4"].ToString();
            aomamodel.返修内容 = dr["返修内容"].ToString();
            try
            {
                aomamodel.产品下线时间 = dr["产品下线时间"].ToString();
                aomamodel.产品型号 = dr["产品型号"].ToString();
                aomamodel.总成码 = dr["总成码"].ToString();
                aomamodel.总结果 = dr["总结果"].ToString();
                aomamodel.托盘号 = dr["托盘号"].ToString();
            }
            catch (System.Exception)
            {

                //throw;
            }

            return aomamodel;
        }
        /// <summary>
        /// 获取信息,返回DataTtable
        /// </summary>
        /// <returns></returns>
        public static DataTable GetDataTable(string where)
        {
            return SqlHelpertiaoma.QueryDataTable("select * from tiaoma" + where);
        }
        public static DataTable GetDataTable1(string sql)
        {
            return SqlHelpertiaoma.QueryDataTable(sql);
        }
        /// <summary>
        /// 获取信息,返回List<aomaModel>
        /// </summary>
        /// <returns></returns>
        public static List<aomaModel> GetData(string where)
        {
            List<aomaModel> checkmonitormodel = new List<aomaModel>();
            DataTable dt = GetDataTable(where);
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                checkmonitormodel.Add(GetData(dt.Rows[i]));
            }
            return checkmonitormodel;
        }

        public static List<aomaModel> GetData(string sql, bool alwaytrue)
        {
            List<aomaModel> checkmonitormodel = new List<aomaModel>();
            DataTable dt = GetDataTable1(sql);
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                checkmonitormodel.Add(GetData(dt.Rows[i]));
            }
            return checkmonitormodel;
        }
        /// <summary>
        /// 获取所有数据
        /// </summary>
        /// <returns></returns>
        public static List<aomaModel> GetData()
        {
            return GetData("");
        }

    }
    public class aomaModel
    {
        string _内部码 = "";
        /// <summary>
        /// 
        /// </summary>
        public string 内部码
        {
            get { return _内部码; }
            set { _内部码 = value; }
        }
        string _ID = "";
        /// <summary>
        /// 
        /// </summary>
        public string ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        string _OP10_1扫码1名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10_1扫码1名称
        {
            get { return _OP10_1扫码1名称; }
            set { _OP10_1扫码1名称 = value; }
        }
        string _OP10_1扫码1 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10_1扫码1
        {
            get { return _OP10_1扫码1; }
            set { _OP10_1扫码1 = value; }
        }
        string _OP10_1扫码2名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10_1扫码2名称
        {
            get { return _OP10_1扫码2名称; }
            set { _OP10_1扫码2名称 = value; }
        }
        string _OP10_1扫码2 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10_1扫码2
        {
            get { return _OP10_1扫码2; }
            set { _OP10_1扫码2 = value; }
        }
        string _OP10_2扫码1名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10_2扫码1名称
        {
            get { return _OP10_2扫码1名称; }
            set { _OP10_2扫码1名称 = value; }
        }
        string _OP10_2扫码1 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10_2扫码1
        {
            get { return _OP10_2扫码1; }
            set { _OP10_2扫码1 = value; }
        }
        string _OP10_2扫码2名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10_2扫码2名称
        {
            get { return _OP10_2扫码2名称; }
            set { _OP10_2扫码2名称 = value; }
        }
        string _OP10_2扫码2 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10_2扫码2
        {
            get { return _OP10_2扫码2; }
            set { _OP10_2扫码2 = value; }
        }
        string _OP10扫码1名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10扫码1名称
        {
            get { return _OP10扫码1名称; }
            set { _OP10扫码1名称 = value; }
        }
        string _OP10扫码1 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10扫码1
        {
            get { return _OP10扫码1; }
            set { _OP10扫码1 = value; }
        }
        string _OP10扫码2名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10扫码2名称
        {
            get { return _OP10扫码2名称; }
            set { _OP10扫码2名称 = value; }
        }
        string _OP10扫码2 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10扫码2
        {
            get { return _OP10扫码2; }
            set { _OP10扫码2 = value; }
        }
        string _OP10扫码3名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10扫码3名称
        {
            get { return _OP10扫码3名称; }
            set { _OP10扫码3名称 = value; }
        }
        string _OP10扫码3 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10扫码3
        {
            get { return _OP10扫码3; }
            set { _OP10扫码3 = value; }
        }
        string _OP10扫码4名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10扫码4名称
        {
            get { return _OP10扫码4名称; }
            set { _OP10扫码4名称 = value; }
        }
        string _OP10扫码4 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP10扫码4
        {
            get { return _OP10扫码4; }
            set { _OP10扫码4 = value; }
        }
        string _OP20扫码1名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP20扫码1名称
        {
            get { return _OP20扫码1名称; }
            set { _OP20扫码1名称 = value; }
        }
        string _OP20扫码1 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP20扫码1
        {
            get { return _OP20扫码1; }
            set { _OP20扫码1 = value; }
        }
        string _OP20扫码2名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP20扫码2名称
        {
            get { return _OP20扫码2名称; }
            set { _OP20扫码2名称 = value; }
        }
        string _OP20扫码2 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP20扫码2
        {
            get { return _OP20扫码2; }
            set { _OP20扫码2 = value; }
        }
        string _OP20扫码3名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP20扫码3名称
        {
            get { return _OP20扫码3名称; }
            set { _OP20扫码3名称 = value; }
        }
        string _OP20扫码3 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP20扫码3
        {
            get { return _OP20扫码3; }
            set { _OP20扫码3 = value; }
        }
        string _OP20扫码4名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP20扫码4名称
        {
            get { return _OP20扫码4名称; }
            set { _OP20扫码4名称 = value; }
        }
        string _OP20扫码4 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP20扫码4
        {
            get { return _OP20扫码4; }
            set { _OP20扫码4 = value; }
        }
        string _OP30扫码1名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP30扫码1名称
        {
            get { return _OP30扫码1名称; }
            set { _OP30扫码1名称 = value; }
        }
        string _OP30扫码1 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP30扫码1
        {
            get { return _OP30扫码1; }
            set { _OP30扫码1 = value; }
        }
        string _OP30扫码2名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP30扫码2名称
        {
            get { return _OP30扫码2名称; }
            set { _OP30扫码2名称 = value; }
        }
        string _OP30扫码2 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP30扫码2
        {
            get { return _OP30扫码2; }
            set { _OP30扫码2 = value; }
        }
        string _OP30扫码3名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP30扫码3名称
        {
            get { return _OP30扫码3名称; }
            set { _OP30扫码3名称 = value; }
        }
        string _OP30扫码3 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP30扫码3
        {
            get { return _OP30扫码3; }
            set { _OP30扫码3 = value; }
        }
        string _OP30扫码4名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP30扫码4名称
        {
            get { return _OP30扫码4名称; }
            set { _OP30扫码4名称 = value; }
        }
        string _OP30扫码4 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP30扫码4
        {
            get { return _OP30扫码4; }
            set { _OP30扫码4 = value; }
        }
        string _OP40扫码1名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP40扫码1名称
        {
            get { return _OP40扫码1名称; }
            set { _OP40扫码1名称 = value; }
        }
        string _OP40扫码1 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP40扫码1
        {
            get { return _OP40扫码1; }
            set { _OP40扫码1 = value; }
        }
        string _OP40扫码2名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP40扫码2名称
        {
            get { return _OP40扫码2名称; }
            set { _OP40扫码2名称 = value; }
        }
        string _OP40扫码2 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP40扫码2
        {
            get { return _OP40扫码2; }
            set { _OP40扫码2 = value; }
        }
        string _OP40扫码3名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP40扫码3名称
        {
            get { return _OP40扫码3名称; }
            set { _OP40扫码3名称 = value; }
        }
        string _OP40扫码3 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP40扫码3
        {
            get { return _OP40扫码3; }
            set { _OP40扫码3 = value; }
        }
        string _OP40扫码4名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP40扫码4名称
        {
            get { return _OP40扫码4名称; }
            set { _OP40扫码4名称 = value; }
        }
        string _OP40扫码4 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP40扫码4
        {
            get { return _OP40扫码4; }
            set { _OP40扫码4 = value; }
        }
        string _OP50扫码1名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP50扫码1名称
        {
            get { return _OP50扫码1名称; }
            set { _OP50扫码1名称 = value; }
        }
        string _OP50扫码1 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP50扫码1
        {
            get { return _OP50扫码1; }
            set { _OP50扫码1 = value; }
        }
        string _OP50扫码2名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP50扫码2名称
        {
            get { return _OP50扫码2名称; }
            set { _OP50扫码2名称 = value; }
        }
        string _OP50扫码2 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP50扫码2
        {
            get { return _OP50扫码2; }
            set { _OP50扫码2 = value; }
        }
        string _OP50扫码3名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP50扫码3名称
        {
            get { return _OP50扫码3名称; }
            set { _OP50扫码3名称 = value; }
        }
        string _OP50扫码3 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP50扫码3
        {
            get { return _OP50扫码3; }
            set { _OP50扫码3 = value; }
        }
        string _OP50扫码4名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP50扫码4名称
        {
            get { return _OP50扫码4名称; }
            set { _OP50扫码4名称 = value; }
        }
        string _OP50扫码4 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP50扫码4
        {
            get { return _OP50扫码4; }
            set { _OP50扫码4 = value; }
        }
        string _OP60扫码1名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP60扫码1名称
        {
            get { return _OP60扫码1名称; }
            set { _OP60扫码1名称 = value; }
        }
        string _OP60扫码1 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP60扫码1
        {
            get { return _OP60扫码1; }
            set { _OP60扫码1 = value; }
        }
        string _OP60扫码2名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP60扫码2名称
        {
            get { return _OP60扫码2名称; }
            set { _OP60扫码2名称 = value; }
        }
        string _OP60扫码2 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP60扫码2
        {
            get { return _OP60扫码2; }
            set { _OP60扫码2 = value; }
        }
        string _OP60扫码3名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP60扫码3名称
        {
            get { return _OP60扫码3名称; }
            set { _OP60扫码3名称 = value; }
        }
        string _OP60扫码3 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP60扫码3
        {
            get { return _OP60扫码3; }
            set { _OP60扫码3 = value; }
        }
        string _OP60扫码4名称 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP60扫码4名称
        {
            get { return _OP60扫码4名称; }
            set { _OP60扫码4名称 = value; }
        }
        string _OP60扫码4 = "";
        /// <summary>
        /// 
        /// </summary>
        public string OP60扫码4
        {
            get { return _OP60扫码4; }
            set { _OP60扫码4 = value; }
        }
        string _返修内容 = "";
        /// <summary>
        /// 
        /// </summary>
        public string 返修内容
        {
            get { return _返修内容; }
            set { _返修内容 = value; }
        }

        public string 产品下线时间 { get => _产品下线时间; set => _产品下线时间 = value; }
        public string 产品型号 { get => _产品型号; set => _产品型号 = value; }
        public string 总成码 { get => _总成码; set => _总成码 = value; }
        public string 总结果 { get => _总结果; set => _总结果 = value; }
        public string 托盘号 { get => _托盘号; set => _托盘号 = value; }
        public string OP70扫码1名称 { get => _OP70扫码1名称; set => _OP70扫码1名称 = value; }
        public string OP70扫码1 { get => _OP70扫码1; set => _OP70扫码1 = value; }
        public string OP80扫码1名称 { get => _OP80扫码1名称; set => _OP80扫码1名称 = value; }
        public string OP80扫码1 { get => _OP80扫码1; set => _OP80扫码1 = value; }

        string _产品下线时间 = "";
        string _产品型号;
        string _总成码;
        string _总结果;
        string _托盘号;
        string _OP70扫码1名称;
        string _OP70扫码1;
        string _OP80扫码1名称;
        string _OP80扫码1;
    }
}